var express = require("express");

var morgan = require("morgan");

var path = require("path");

var app = express();

app.use(morgan("short"));

var filePath = path.join(__dirname,"1.mp3");
app.use(function(req,res){
	res.sendFile(filePath);
});

app.use(function(err,req,res,next){
	console.error(err);
	next(err);
});

app.use(function(err,req,res,next){
	res.status(500);
	res.send("Internal server error.");
});

app.listen(3000,function(){
	console.log("app started on port 3000");
});